import request from '@/utils/request'



// 查询BI的打标规则列表
export function RuleTagger(query) {
  return request({
    url: '/conf/BiRuleSpecifications/RuleTagger',
    method: 'get',
    params: query
  })
}
// 查询BI的打标规则列表
export function listByAbnormalRule(query) {
  return request({
    url: '/conf/BiRuleSpecifications/listByAbnormalRule',
    method: 'get',
    params: query
  })
}
// 查询BI的打标规则列表
export function getTablefieldsWithComments(query) {
  return request({
    url: '/conf/BiRuleSpecifications/getTableFieldsWithComments',
    method: 'get',
    params: query
  })
}
// 查询BI的打标规则列表
export function listByRules(query) {
  return request({
    url: '/conf/BiRuleSpecifications/listByRules',
    method: 'get',
    params: query
  })
}

// 查询BI的打标规则列表
export function listBiRuleSpecifications(query) {
  return request({
    // url: '/conf/BiRuleSpecifications/list',
     url: '/conf/BiRuleSpecifications/listByRuleTage',
    
    method: 'get',
    params: query
  })
}
// 查询BI的打标规则详细
export function getBiRuleSpecifications(id) {
  return request({
    url: '/conf/BiRuleSpecifications/' + id,
    method: 'get'
  })
}

// 新增BI的打标规则
export function addByRules(data) {
  return request({
    url: '/conf/BiRuleSpecifications/addByRules',
    method: 'post',
    data: data
  })
}
// 新增BI的打标规则
export function addBiRuleSpecifications(data) {
  return request({
    url: '/conf/BiRuleSpecifications',
    method: 'post',
    data: data
  })
}
// 新增BI的打标规则
export function addByRuleTage(data) {
  return request({
    url: '/conf/BiRuleSpecifications/addByRuleTage',
    method: 'post',
    data: data
  })
}
// 新增BI的打标规则
export function addByAbnormalRule(data) {
  return request({
    url: '/conf/BiRuleSpecifications/addByAbnormalRule',
    method: 'post',
    data: data
  })
}
// 修改BI的打标规则
export function updateBiRuleSpecifications(data) {
  return request({
    url: '/conf/BiRuleSpecifications',
    method: 'put',
    data: data
  })
}

// 删除BI的打标规则
export function delBiRuleSpecifications(id) {
  return request({
    url: '/conf/BiRuleSpecifications/' + id,
    method: 'delete'
  })
}
